Author: Halfvares Mats, Teknikhuset AB.

Published: 2015-03-31

Applies to:
  • Content Studio ver. 5

Type: How to


More information

Sometimes it is neccessary to rebuild the Content Studio full text indexes. This i always needed when you have restored a Content Studio site database on another database server or on the same server but with another name. The reason for this is that the name of the full text catalogs containing the index is given a name that is dependent on the SQL Server ID of the database ie. "ftxt_DATABASEID_CS_ContentBinary" and "ftxt_DATABASEID_XML_Data" where DATABASEID is the internal id of the database. This ID is not preserved when you restore the database as a new database but the full-text information will remain. You also will note that the database reports that the full text catalog has been lost. In this situation you will need to delete the 2 catalogs and completly rebuild them.

Starting with Content Studio 5.2 SQL Server 2000 or earlier no longer are supported with the product. Version 5.2 uses features that are not available in earlier versions of SQL Server. One of these is the varbinary(max) datatype that makes it possible to support automatic background fulltext indexing. With this datatype, documents can be fulltext indexed within a few seconds and fulltext indexing jobs used in earlier versions no longer are needed. The second script does not support this and will turn off automatic indexing if run on a version 5.2 database.

 

To rebuild the catalogs

  • Start the SQL Query analyser tool from the tools menu in Enterprise Manager or open a new query window in Management Studio and paste in the script that rebuilds the catalogs. Below is the TSQL script you can use to rebuild the catalogs.

    Important
    There are three versions of the script, choose the correct one.

    Script to use in version 5.7 and later

    Script to use in version 5.2 and later

    Script to in version 5.1 and 5.0

  • Execute the script and close Management Studio or Query Analyzer.

You should now be able to work with the Content Studio full-text index as usual.